﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


public class BLL_tbl_shipping_terms
{
    public BLL_tbl_shipping_terms()
    {

    }

    public List<tbl_shipping_terms> select(int SHIPPING_TERMS_ID)
    {
        DAL_tbl_shipping_terms dal = new DAL_tbl_shipping_terms();
        return dal.select(SHIPPING_TERMS_ID);
    }

    public List<tbl_shipping_terms> selectAll()
    {
        DAL_tbl_shipping_terms dal = new DAL_tbl_shipping_terms();
        return dal.selectAll();
    }

    public bool insert(tbl_shipping_terms tbl)
    {
        DAL_tbl_shipping_terms dal = new DAL_tbl_shipping_terms();
        int i = 0;
        i = dal.insert(
            tbl.SHIPPING_TERMS
, tbl.IS_ACTIVE
        );

        return Convert.ToBoolean(i);
    }


    public bool update(tbl_shipping_terms tbl)
    {
        DAL_tbl_shipping_terms dal = new DAL_tbl_shipping_terms();
        int i = 0;
        i = dal.update(
            tbl.SHIPPING_TERMS_ID
, tbl.SHIPPING_TERMS
, tbl.IS_ACTIVE
            );

        return Convert.ToBoolean(i);
    }


    public bool delete(tbl_shipping_terms tbl)
    {
        DAL_tbl_shipping_terms dal = new DAL_tbl_shipping_terms();
        int i = 0;
        i = dal.delete(
                tbl.SHIPPING_TERMS_ID
        );

        return Convert.ToBoolean(i);
    }


}

